$(function(){
		$('a.btn-success,a.btn-danger,a.btn-warning,a.js_internal').click(function(){
			var obj = $(this);
			var isAudit = obj.attr("isAudit");
			var title = obj.attr("title");
			var label = obj.attr("label");
			Confirm(title, label, function(){
				 $('#js_submit').button('loading');
				 $.get(obj.attr("ref"), {isAudit:isAudit}, function(res){
					$('#js_submit').button('reset');
					if(res.status == 'ok'){
						success(res.message);
						setTimeout(window.location.reload(),1000);
					}else{
						error(res.message);
						setTimeout(window.location.reload(),1000);
					}
				}); 
			});
		});
});